package com.fm.demo

import cn.jpush.android.api.JPushInterface
import com.blankj.utilcode.util.AppUtils
import com.blankj.utilcode.util.LogUtils
import com.fm.common.base.CommonApplication

/**
 * @CreateData:     2019/11/1 9:33
 * @E-Mail:         709674174@qq.com
 * @Author:         lyy
 * @Description:    application
 */
@Suppress("unused")
class DemoApplication : CommonApplication() {

    override fun onCreate() {
        super.onCreate()
        //极光推送初始化
        if (!AppUtils.isAppDebug()) {
            LogUtils.i("极光推送 初始化")
            JPushInterface.setDebugMode(AppUtils.isAppDebug())
            JPushInterface.init(applicationContext)
        }
    }

}